package com.ysf.cn.springbootshrio.service.Impl;

import com.ysf.cn.springbootshrio.mapper.UserMapper;
import com.ysf.cn.springbootshrio.pojo.User;
import com.ysf.cn.springbootshrio.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author ysf
 * @date 2020/2/12 14:57
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;
    /**
     * 根据用户姓名查询用户信息
     * @param username
     * @return
     */
    @Override
    public User finduserById(String username) {
        return userMapper.finduserById(username);
    }
}
